package com.micro.common.service.web.client.domain.req.task;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.util.Map;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("待办-创建待办请求体")
public class TaskAddReq {

    @ApiModelProperty("待办类型")
    @NotBlank(message = "待办类型不能为空")
    private String taskType;

    @ApiModelProperty("接收人编码")
    @NotBlank(message = "接收人编码不能为空")
    private String userCode;

    @ApiModelProperty("接收人姓名")
    @NotBlank(message = "接收人姓名不能为空")
    private String userName;

    @ApiModelProperty("详情url")
    private String taskUrl;

    @ApiModelProperty("关联业务数据的id,消除待办使用这个值")
    @NotBlank(message = "业务数据的id不能为空")
    private String businessId;

    @ApiModelProperty("扩展数据")
    private String extendData;

    @ApiModelProperty("创建人编码")
    @NotBlank(message = "创建人编码不能为空")
    private String creator;

    @ApiModelProperty("创建人姓名")
    @NotBlank(message = "创建人姓名不能为空")
    private String creatorName;

    @ApiModelProperty("业务参数")
    private Map<String, String> mapParam;

}
